import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "@/assets/style/index.scss";
import "@/components";
import "amfe-flexible";
// 引入svg相关文件
import "./utils/icons/index.js";
import VideoPlayer from "vue-video-player/src";
import "vue-video-player/src/custom-theme.css";
import "video.js/dist/video-js.css";
import * as echarts from "echarts";
import moment from "moment";
import * as echartsGL from "echarts-gl"; //echarts 3D插件，有用到3d地图的需要此插件，普通图表不需要引入
import "@/assets/css/font.css";
import FitScreen from "@fit-screen/vue";

Vue.prototype.$echarts = echarts;
Vue.prototype.$echartsGL = echartsGL;

Vue.use(ElementUI);

Vue.use(VideoPlayer);
// 修改默认点击遮罩层为不关闭
ElementUI.MessageBox.setDefaults({
  closeOnClickModal: false,
});
ElementUI.Dialog.props.closeOnClickModal.default = false;
Vue.prototype.$moment = moment;
Vue.filter("moment", function (value, formatString) {
  formatString = formatString || "YYYY-MM-DD HH:mm:ss";
  return moment(value).format(formatString);
});
Vue.config.productionTip = false;
require("swiper/dist/css/swiper.css");
import VueAwesomeSwiper from "vue-awesome-swiper";

Vue.use(VueAwesomeSwiper);

import vueSeamlessScroll from "vue-seamless-scroll"; // 循环滚动
Vue.use(vueSeamlessScroll);
Vue.use(FitScreen);
import VCalendar from "v-calendar";
Vue.use(VCalendar);
let app = new Vue({
  router,
  store,
  render: (h) => h(App),
});
Vue.use(FitScreen);
app.$mount("#app");
